﻿using MiniExcelLibs.Attributes;

namespace RuoVea.OmiLog.Dto
{
    /// <summary>
    /// 导出日志数据
    /// </summary>
    public class ExportLogDto
    {
        /// <summary>
        /// 记录器类别名称
        /// </summary>
        [ExcelColumnName("记录器类别名称")]
        public string LogName { get; set; }

        /// <summary>
        /// 日志级别
        /// </summary>
        [ExcelColumnName("日志级别")]
        public string LogLevel { get; set; }

        /// <summary>
        /// 事件Id
        /// </summary>
        [ExcelColumnName("事件Id")]
        public string EventId { get; set; }

        /// <summary>
        /// 日志消息
        /// </summary>
        [ExcelColumnName("日志消息")]
        public string Message { get; set; }

        /// <summary>
        /// 异常对象
        /// </summary>
        [ExcelColumnName("异常对象")]
        public string Exception { get; set; }

        /// <summary>
        /// 当前状态值
        /// </summary>
        [ExcelColumnName("当前状态值")]
        public string State { get; set; }

        /// <summary>
        /// 日志记录时间
        /// </summary>
        [ExcelColumnName("日志记录时间")]
        public DateTime LogDateTime { get; set; }

        /// <summary>
        /// 线程Id
        /// </summary>
        [ExcelColumnName("线程Id")]
        public int ThreadId { get; set; }

        /// <summary>
        /// 请求跟踪Id
        /// </summary>
        [ExcelColumnName("请求跟踪Id")]
        public string TraceId { get; set; }
    }
}
